import React from "react";
import { BrowserRouter, useRoutes } from "react-router-dom";
import { router_list } from "./routes";



const Router:React.FC=()=>{

    const RouteViwe=()=>useRoutes(router_list)

    return (
       <BrowserRouter>
          <React.Suspense fallback={<div>加载中...</div>}>
             <RouteViwe></RouteViwe>
          </React.Suspense>
       </BrowserRouter>
    )
}

export default Router